import React from 'react';
import {
  HashRouter,
  Routes,
  Route,
} from "react-router-dom";
import Home from './views/home'
import News from './views/news'
import User from './views/user'
import Profile from './views/user/profile'
import LayoutFooter from './components/LayoutFooter';
import LayoutHeader from './components/LayoutHeader';

const RouteList = () => {
  return (
    <HashRouter>
      <LayoutHeader />
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/news" element={<News />} />
        <Route path="/user" element={<User />} />
        <Route path="/profile" element={<Profile />} />
      </Routes>
      <LayoutFooter />
    </HashRouter>
  )
}

export default RouteList